package com.example.qt.ptplatform.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("point_records")
public class PointRecord {
    @TableId(value = "point_record_id", type = IdType.AUTO)
    private Long pointRecordId;

    @TableField("user_id")
    private Integer userId;

    @TableField("points")
    private BigDecimal points;

    @TableField("torrent_id")
    private Integer torrentId;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("point_type")
    private String pointType;

}
